home *** CD-ROM | disk | FTP | other *** search
- function launcher(command)
- {
- if(command == "step00")
- {
- _root.loadMC();
- }
- else if(command == "step01")
- {
- _root.emailCheck();
- }
- else if(command == "step02")
- {
- _root.serialCheck();
- }
- else if(command == "nonStep")
- {
- _root.stay();
- }
- else if(command == "domain")
- {
- _root.debug = "domain";
- _root.domain();
- }
- else if(command == "mailmod")
- {
- _root.mailmod();
- }
- }
- function loadMC()
- {
- if(_root.res_code == 0)
- {
- swf_url = "http://www.kuraemon.com/software/regist/" + productid;
- loadMovie(swf_url,_root.baseMC.targetMC);
- _root.nextFrame();
- }
- else if(_root.res_code != 2)
- {
- alertMC.gotoAndStop(2);
- alertMC.message = _root.res_message;
- _root.nextFrame();
- }
- }
- function emailCheck()
- {
- var message = "Please confirm the above address.";
- if(_root.res_code == 0)
- {
- if(_root.serial_enable == 1)
- {
- if(_root.password == "")
- {
- _root.baseMC.targetMC._y = 400;
- alertMC.gotoAndStop(3);
- alertMC.lavel = "pass";
- alertMC.email = _root.baseMC.targetMC.email;
- alertMC.message = message;
- }
- else
- {
- _root.baseMC.targetMC._y = 400;
- alertMC.gotoAndStop(3);
- alertMC.lavel = "serial";
- alertMC.email = _root.baseMC.targetMC.email;
- alertMC.message = message;
- }
- }
- else if(_root.serial_enable == 0)
- {
- _root.baseMC.targetMC._y = 400;
- alertMC.gotoAndStop(3);
- alertMC.lavel = "digipass";
- alertMC.email = _root.baseMC.targetMC.email;
- alertMC.message = message;
- }
- }
- else if(_root.res_code == 401)
- {
- _root.baseMC.targetMC._y = 400;
- alertMC.gotoAndStop(3);
- alertMC.lavel = "serial";
- alertMC.email = _root.baseMC.targetMC.email;
- alertMC.message = message;
- }
- else if(_root.res_code != 2)
- {
- _root.baseMC.targetMC._y = 400;
- alertMC.gotoAndStop(2);
- alertMC.message = _root.res_message;
- }
- }
- function serialCheck()
- {
- if(_root.res_code == 0)
- {
- _root.baseMC.targetMC.gotoAndStop("complite");
- alertMC.gotoAndStop(1);
- }
- else if(_root.res_code != 2)
- {
- _root.baseMC.targetMC._y = 400;
- alertMC.gotoAndStop(2);
- alertMC.message = _root.res_message;
- }
- }
- function stay()
- {
- if(_root.res_code == 0)
- {
- _root.baseMC.targetMC._y = 400;
- alertMC.gotoAndStop(2);
- alertMC.message = _root.res_message;
- }
- else if(_root.res_code != 2)
- {
- _root.baseMC.targetMC._y = 400;
- alertMC.gotoAndStop(2);
- alertMC.message = _root.res_message;
- }
- }
- function domain()
- {
- if(_root.res_code == 0)
- {
- if(_root.serial_enable == 1)
- {
- _root.baseMC.targetMC.gotoAndStop("serial");
- }
- else if(_root.serial_enable == 0)
- {
- _root.baseMC.targetMC.gotoAndStop("complite");
- alertMC.gotoAndStop(1);
- }
- }
- else if(_root.res_code != 2)
- {
- if(_root.res_code == 404)
- {
- _root.baseMC.targetMC._y = 400;
- alertMC.gotoAndStop(2);
- alertMC.message = _root.res_message;
- }
- }
- }
- function mailmod()
- {
- _root.baseMC.targetMC.email = _root.email;
- }
- is_connect = "";
- email = "";
- password = "";
- serial = "";
- fs = "close";
- load_state = false;
- productid = "";
- serial_enable = "";
- magreg = "";
- magregenable = "";
-